package com.yc.knn;


import com.yc.knn.bean.Sample;

/**
 * 距离计算接口
 */

public interface DistanceCalculator {
    /**
     * 计算两个样本之间的距离
     * @param sample1
     * @param sample2
     * @return
     */
    public double calculate(Sample sample1, Sample sample2);
}
